cmake_minimum_required(VERSION 3.3)
project(Hello)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")


include_directories(
        ${CMAKE_SOURCE_DIR}/include
        ${CMAKE_SOURCE_DIR}/src
        ${CMAKE_SOURCE_DIR}/lib/FreeRTOS/FreeRTOS/Source/include
        ${CMAKE_SOURCE_DIR}/lib/FreeRTOS/FreeRTOS/Source/portable/MSVC-MingW
)

file(GLOB FreeRTOSSrc
        ${CMAKE_SOURCE_DIR}/lib/FreeRTOS/FreeRTOS/Source/*.c
)
file (GLOB FreeRTOSPortable
        ${CMAKE_SOURCE_DIR}/lib/FreeRTOS/FreeRTOS/Source/portable/MSVC-MingW/*.c
)
file(GLOB SRC
        ${CMAKE_SOURCE_DIR}/src/*.cpp
        ${CMAKE_SOURCE_DIR}/src/*.c
)
add_executable(Hello ${SRC} ${FreeRTOSSrc} ${FreeRTOSPortable})

target_link_libraries(Hello winmm)